import { http } from '@/utils/http'

/** 小程序登录 */
export const login = (data: object) => {
  return http.get('/sportCardApi/wechatXCX/jscode2session', data)
}

/** 小程序获取用户手机号 */
export const getPhoneByCode = (data: object) => {
  return http.post(`/sportCardApi/wechatXCX/getPhoneByCode?code=${data}`)
}

/** 修改用户信息 */
export const updateKhInfo = (data: object) => {
  return http.post(`/sportCardApi/khUser/updateKhInfo`, data)
}
